<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>书信内容</title>
    <link rel="stylesheet" href="styles.css">
    <style>
        /* 书信页面特有样式 */
        .container {
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 20px;
            box-sizing: border-box;
        }
        .letter-box {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 40px;
            width: 100%;
            max-width: 800px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .letter-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }
        h1 {
            color: #333;
            font-size: 28px;
            margin-bottom: 10px;
            font-weight: 600;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 15px;
        }
        #letterNumber {
            color: #666;
            font-size: 14px;
            margin-bottom: 25px;
            font-style: italic;
        }
        .letter-content {
            line-height: 1.8;
            color: #333;
            font-size: 16px;
            margin-bottom: 30px;
            white-space: pre-wrap;
            word-break: break-word;
            min-height: 300px;
        }
        .actions {
            display: flex;
            justify-content: center;
        }
        .btn {
            background: #4a6cf7;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
            text-decoration: none;
            transition: background 0.3s ease;
        }
        .btn:hover {
            background: #3a5bdb;
        }
        @media (max-width: 600px) {
            .letter-box {
                padding: 25px;
            }
            h1 {
                font-size: 24px;
            }
            .letter-content {
                font-size: 15px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="letter-box">
            <h1>您的书信</h1>
            <div id="letterNumber"></div>
            <div id="letterContent" class="letter-content">
                <p>加载中...</p>
            </div>
            <div class="actions">
                <a href="index.html" class="btn">返回主页面</a>
            </div>
        </div>
    </div>
    <script src="scripts.js"></script>
</body>
</html>